<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
	<meta charset="utf-8">
    <title>Driver/Vendor Edit</title>
<?php echo link_tag(my_url().'skin.css'); ?>
<?php echo link_tag(my_url().'tcal.css'); ?>
<script type="text/javascript" src="<?php echo my_url(); ?>js/1.js"></script>
<script type="text/javascript" src="<?php echo my_url(); ?>tcal.js"></script> 
<script type="text/javascript" src="../js/1.js"></script>
<script src="<?php echo my_url(); ?>js/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
 var BaseURL='<?php echo base_url(); ?>';
function redirect(location){
	
	window.location.href= location;
}

</script>

<link rel="stylesheet" href="../skin.css" type="text/css" media="screen" /><meta name="author" content="Jaypee Mahilum" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link href="skin.css" rel="stylesheet" type="text/css" />
</head>

<?php
//echo $_SESSION['administrator_log']."============";
if(!isset($_SESSION['administrator_log']))
{
		echo"Log in first to access this page<html><title>WARNING</title><body><br><a href='".base_url()."administrator' />click here to log in.</a></body></html>";
}
else
{
?>
<body >

	<div class="BodyCover">
	
 		<div class="ParentContent">
	        <?php require("admin_menu.php"); ?>
			<div class="MenuTab">
    			<div class="MenuBelow"><img src="<?php echo my_url();?>images/below-menu.gif"></div>        
             </div>

			<br /><br />	
			<div class="module-index1">
		  		<div align="right"><a href="<?php echo base_url()?>admin/logout" style="color:#FF0000;">logout</a></div><br/>
  	                <p class=""><?php if (isset($recordflag)) {echo $recordflag;}?><p>
			   <h1>Edit Driver/ Vendor </h1>
               
                     
                 <form action="<?php echo base_url()?>dv/p_edit_dv/" method="post">
                <input type="hidden" name="hid_profileid" value="<?php echo $info->driver_code ?>"  />
              <label>Rating:</label> <?php  echo select_list("rating","rating","rating","id","","name=rating",$info->rating ); ?> 
		        <label>Vendor Type:</label> <?php  echo select_list("vendor_type","vendor_type","vendor_type","id","","name=vendor_type",$info->vendor_type); ?> 
                <label> Priority No.</label> <?php  echo select_list("priority_no","priority_no","priority_no","id","","name=priority_no",$info->priority_no); ?>  <br /> <br />            
                <label>Company Name:</label> <input name="dv_company_name" value="<?php echo $info->dv_company_name ?>"/>
                <label> Nick Name:</label> <input name="dv_n_name" value="<?php echo $info->dv_n_name ?>"/> <br /> <br />                 
                <label>First Name:</label> <input name="f_name" value="<?php echo $info->f_name ?>"/>
                 <label> Last Name:</label><input name="l_name" value="<?php echo $info->l_name ?>" /><br /> <br /> 
                <label>Address:</label> <input name="address" value="<?php echo $info->address ?>" />
                <label> City:</label> <input size="10"name="city" value="<?php echo $info->city ?>"  />
                <label>State:</label> <?php  echo select_list("state","state","state","state_id","","name=state",$info->state); ?>
                <label>Zipcode:</label> <input size="5" name="zipcode" value="<?php echo $info->zipcode ?>"/><br /> <br /> 
                <label>Mobile Number:</label> <input name="cell_phone_num" value="<?php echo $info->cell_phone_num ?>" /> 
                <label>Fax Number:</label> <input name="fax_num" value="<?php echo $info->fax_num ?>" /> 
                <label>ALT Number:</label> <input name="alt_phone_num" value="<?php echo $info->alt_phone_num ?>" /> <br /> <br /> 
                <label>Email Address:</label> <input name="email_add" value="<?php echo $info->email_add ?>"/><br /> <br /> 
                <label>Trailer Number:</label> <input name="trailer_num" value="<?php echo $info->trailer_num?>" /> 
                <label> Type of Truck:</label> <?php  echo select_list("type_of_truck","type_of_truck","type_of_truck","id","","name=type_of_truck",$info->type_of_truck); ?> <br /> <br /> 
                <label>Truck Number:</label> <input name="truck_num" value="<?php echo $info->truck_num ?>"/>
                <label>Hazmat:</label> <input  name="hazmat" value="<?php echo $info->hazmat ?>"/> <br /> <br /> 
                <label>MC Number:</label> <input name="mc_num" value="<?php echo $info->mc_num ?>"/>
                <label>Wearhousing:</label> <input  name="wearhousing" value="<?php echo $info->wearhousing?>"/> <br /> <br />                
                <label>DOT NO.:</label> <input name="dot_no" value="<?php echo $info->dot_no ?>"/> <br /> <br /> 
                <label> Insurance Name:</label> <input name="insurance_name" value="<?php echo $info->insurance_name ?>"/>
                <label>Insurance Coverage Amount:</label> <input name="i_c_a" size="6" value="<?php echo $info->i_c_a ?>"/><br />
                <label> Insurance Policy No.:</label> <input size="6" name="ins_p_no" value="<?php echo $info->ins_p_no ?>" />
                <label> Insurance Amount:</label> <input name="insurance_no" size="6" value="<?php echo $info->insurance_no ?>"/>
                <label> Expiration Date:</label> <input type="text" size="8" name="expr_date" class="tcal" value="" /> <br /> <br /> 
                <label>Rep:</label> <?php  echo select_list("em_profile","em_n_name","em_n_name","employee_code","","name=rep",$info->rep); ?> <br /> <br />                
                <label>Comment:</label><br /><textarea name="dv_comment_box" /><?php echo $info->dv_comment_box?> </textarea><br /> <br /> 
              	<input type="submit"  value="Save" name="cmdsave">
         		<input type="button"  value="Cancel" onclick="redirect(BaseURL+'dv')" name="cmdcancel">
				</form>
    		<br>

            <div class="BodyContent">
            </div>	
			    		
		    <div class="Footer1">	
                <div class="Footer">Copyright &copy; 2011. All Rights Reserved <br><br>
                 <a href="http://webmartis.com"> <img src="<?php echo my_url();?>images/wmlink.png"></a>
                 
                </div>                
            </div> <!---end of Footer1 ---->        
            
		</div><!---end of ParentContent ---->
    </div> <!---end of BodyCover ---->
</body>
<?php } ?>
</html>

